package astractfactory;

import com.tao.design.factoryMethod.IWorkFactory;
import com.tao.design.factoryMethod.StudentWorkFactory;
import com.tao.design.factoryMethod.TeacherWorkFactory;

/**
 * @projectName: Code
 * @package: astractfactory
 * @className: testForFactoryMethod
 * @author: TT_Hugo
 * @description: TODO
 * @date: 2022/12/26 14:58
 * @version: 1.0
 */
public class testForFactoryMethod {

    public static void main(String[] args) {
        IWorkFactory studentWorkFactory = new StudentWorkFactory();
        studentWorkFactory.getWork().doWork();

        IWorkFactory teacherWorkFactory = new TeacherWorkFactory();
        teacherWorkFactory.getWork().doWork();
    }
}
